home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- BackColor = &H00C0C0C0&
- Caption = "Remote Shell Client"
- ClientHeight = 5715
- ClientLeft = 1080
- ClientTop = 1410
- ClientWidth = 8325
- Height = 6120
- Left = 1020
- LinkTopic = "Form1"
- ScaleHeight = 5715
- ScaleWidth = 8325
- Top = 1065
- Width = 8445
- Begin RSHELL Rshell1
- Height = 420
- Left = 7080
- LocalUser = ""
- RegHandle = RSHELL.FRX:0000
- RemoteHost = ""
- RemoteUser = ""
- Top = 120
- Width = 420
- WinsockLoaded = 0 'False
- End
- Begin TextBox tLocalUser
- Height = 285
- Left = 4440
- TabIndex = 2
- Top = 480
- Width = 1815
- End
- Begin TextBox tRemoteUser
- Height = 285
- Left = 1320
- TabIndex = 1
- Top = 480
- Width = 1815
- End
- Begin TextBox tHost
- Height = 285
- Left = 1320
- TabIndex = 0
- Top = 120
- Width = 3975
- End
- Begin TextBox tCommand
- Height = 285
- Left = 1320
- TabIndex = 3
- Text = "ls -al"
- Top = 840
- Width = 5535
- End
- Begin TextBox tOutput
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Courier New"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 4335
- Left = 0
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 6
- Top = 1320
- Width = 8295
- End
- Begin CommandButton bExecute
- Caption = "Execute!!"
- Height = 315
- Left = 6960
- TabIndex = 4
- Top = 840
- Width = 1215
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Local User:"
- Height = 255
- Index = 3
- Left = 3360
- TabIndex = 9
- Top = 480
- Width = 1185
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Remote User:"
- Height = 255
- Index = 2
- Left = 60
- TabIndex = 8
- Top = 480
- Width = 1185
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Host:"
- Height = 255
- Index = 1
- Left = 60
- TabIndex = 7
- Top = 120
- Width = 1185
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Command:"
- Height = 255
- Index = 0
- Left = 60
- TabIndex = 5
- Top = 840
- Width = 1185
- End
- Sub bExecute_Click ()
- Rshell1.WinsockLoaded = True
- Rshell1.WinsockLoaded = True
- Rshell1.RemoteHost = tHost
- Rshell1.RemoteUser = tRemoteUser
- Rshell1.LocalUser = tLocalUser
- tOutput = ""
- Mousepointer = 11
- Rshell1.Command = tCommand
- End Sub
- Sub Form_Resize ()
- If WindowState <> 1 Then
- margin% = tOutput.Left
- tOutput.Width = ScaleWidth - 2 * margin%
- tOutput.Height = ScaleHeight - tOutput.Top - margin%
- End If
- End Sub
- Sub Rshell1_Disconnected (StatusCode As Integer, Description As String)
- Mousepointer = 0
- End Sub
- Sub Rshell1_Stderr (Text As String, EOL As Integer)
- tOutput.SelStart = Len(tOutput.Text)
- tOutput.SelText = "stderr: " & Text & Chr$(13) & Chr$(10)
- End Sub
- Sub Rshell1_Stdout (Text As String, EOL As Integer)
- tOutput.SelStart = Len(tOutput.Text)
- tOutput.SelText = Text & Chr$(13) & Chr$(10)
- End Sub
- Sub tCommand_KeyPress (KeyAscii As Integer)
- If KeyAscii = 13 Then
- bExecute = True
- KeyAscii = 0
- End If
- End Sub
- Sub tRemoteUser_Change ()
- tLocalUser = tRemoteUser
- End Sub
-